Skip to content

Improve nix flake#200

Merged
mchav merged 4 commits intoDataHaskell:mainfrom
jisantuc:maint/js/fix-nix-build
Apr 27, 2026
Merged

Improve nix flake#200
mchav merged 4 commits intoDataHaskell:mainfrom
jisantuc:maint/js/fix-nix-build

Conversation

@jisantuc
Copy link
Copy Markdown
Contributor

  • update hash of granite so nix build works at all
  • include dataframe-persistent in package outputs

This PR doesn't include either nix-driven CI or dataframe-hasktorch in outputs. Both of those would be good someday, but last time I tried to build hasktorch anything I had a rough time.

Dependencies are already available in hsPkgs, so they don't need to be
additionally passed to callCabal2Nix's last argument
Basically -- manually resolve the link.

callCabal2Nix didn't like the link. Other modules here don't use links,
so I thought it'd be ok if dataframe-persistent didn't either.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a little confusing. I updated the LICENSE in dataframe-persistent from a link to the dataframe license to a regular file containing the text of the dataframe license. That was important for callCabal2Nix reasons.

However, I'm not sure it was a valid thing to do -- dataframe-persistent claims to be licensed as GPL-3.0-or-later. dataframe claims to be licensed under the MIT license. I'm pretty sure those aren't the same license, but in the repo the two libraries shared the same license text.

Comment thread flake.nix
hsPkgs = pkgs.haskellPackages.extend (self: super: {
granite = self.callCabal2nix "granite" granitePkg { };
dataframe-fastcsv = self.callCabal2nix "dataframe-fastcsv" ./dataframe-fastcsv {
inherit parallel;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was apparently unnecessary to pass these deps explicitly, since the dependencies are already present in the packages defined here

@mchav
Copy link
Copy Markdown
Member

mchav commented Apr 27, 2026

I must admit I don't pay too much attention to the license stuff. @Shimuuar gave me a heads up last time and I changed it. Thanks for this.

@mchav mchav merged commit b7b372a into DataHaskell:main Apr 27, 2026
11 checks passed
@jisantuc jisantuc deleted the maint/js/fix-nix-build branch April 27, 2026 21:34
mchav pushed a commit that referenced this pull request Apr 28, 2026
See comment here:
#200 (comment)

On Discord, we discussed that there's no specific reason for
dataframe-persistent to be GPL-licensed, so for commercial
compatibility, bumping to a library consistent with the rest of the
dataframe artifacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants